package com.rs.yyds.service;

import com.rs.yyds.bean.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface UserService {
    /**
     * 根据邮箱和密码进行用户查询以及判断
     * @param user
     * @return
     */
    Map<String,Object> findUserByEmailAndPwd(User user);

    int updateUserById(User user);

    Map<String,Object> addUser(User user);

    List<User> findUser(User user);

    int deleteUsers(int[] ids);

}
